import { http as axios } from './request'

//协议类型
export enum ProtocolType {
    USER_AGREEMENT = '用户协议',
    PRIVACY_AGREEMENT = '隐私政策'
}

export const getProtocol = (code: string) => {
    return axios({
        method: 'GET',
        url: `/api/system/agreement/content/${code}`
    })
}
